package com.doctor.utils;

import android.app.Activity;

import com.doctor.ui.R;


/**
 * Created by NYL for src
 * Date: 2015/9/7
 */
public class AnimationUtils {
    /**
     * 跳转 进入的是100---》0 出去的是0---》-100
     */
    public static void jumpActivity(Activity activity){
        activity.overridePendingTransition(R.animator.push_left_in, R.animator.push_left_out);
    }

    /**
     * 跳转
     * @param activity
     */
    public static void jumpActivityFromBottom(Activity activity) {
        activity.overridePendingTransition(R.animator.push_bottom_in,R.animator.push_bottom_out);
    }

    /**
     * 结束Activity 进入的是 -100---》0 出去的是 0---》100
     */
    public static void endActivityAnim(Activity activity){
        activity.overridePendingTransition(R.animator.push_right_out,R.animator.push_right_in);
    }
}
